#ifndef _FIG_PICKUP_COLLECTION_H_
#define _FIG_PICKUP_COLLECTION_H_



#include "fig_pickup.h"

class FIGPickupCollection
{
public:

	

	FIGPickupCollection(FIGPickup::PICKUP_TYPES Type );
	~FIGPickupCollection();

	void							Render(const math::Vec2& Offset,float Scale);
	void							RenderShadow(const math::Vec2& Offset,float Scale);
	void							RenderDebug(const math::Vec2& Offset,float Scale);
	void							Tick(float dt);


	void							Clear();
	void							Spawn(FIGPickup::PICKUP_TYPES Type, const math::Vec2& P );
	FIGPickup::PICKUP_TYPES			GetType()const { return m_Type; };
	int								GetCount()const { return m_Pickups.size(); };
	FIGPickup*						GetPickupByIndex(int Index);
	bool							HitTest(const math::Vec2& P);
	


protected:

	FIGPickup*						CreatePickup(FIGPickup::PICKUP_TYPES Type, const math::Vec2& P);


	FIGPickup::PICKUP_TYPES			m_Type;
	std::vector<FIGPickup*>			m_Pickups;

};

#endif